package cn.livingCloud.dto;

import cn.livingCloud.entity.core.EmployeeAccount;
import cn.livingCloud.entity.user.UserAccount;

/**
 * 员工账号
 * Created by 唐旭 on 2016/5/30.
 */
public class EmployeeAccountDto extends UserAccountDto {
    private String employeeUuid;
    private EmployeeDto employeeDto;

    public EmployeeAccountDto() {
    }

    public EmployeeAccountDto(UserAccount userAccount) {
        super(userAccount);
    }

    public EmployeeAccountDto(EmployeeAccount userAccount) {
        super(userAccount);
        this.employeeUuid = userAccount.getEmployeeUuid();
        this.employeeDto = new EmployeeDto(userAccount.getEmployee());
    }

    public EmployeeDto getEmployeeDto() {
        return employeeDto;
    }

    public EmployeeAccountDto setEmployeeDto(EmployeeDto employeeDto) {
        this.employeeDto = employeeDto;
        return this;
    }

    public String getEmployeeUuid() {
        return employeeUuid;
    }

    public EmployeeAccountDto setEmployeeUuid(String employeeUuid) {
        this.employeeUuid = employeeUuid;
        return this;
    }
}
